home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / Make-config < prev    next >
Encoding:
Text File  |  1995-07-05  |  10.3 KB  |  411 lines

  1. # Make-config
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.1
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Make-config,v 1.14 1995/06/21 16:03:32 brianp Exp $
  23.  
  24. # $Log: Make-config,v $
  25. # Revision 1.14  1995/06/21  16:03:32  brianp
  26. # added irix5-dso, linux-elf, and unixware targets
  27. # added TK_LIB and AUX_LIB variables
  28. # Release 1.2.1
  29. #
  30. # Revision 1.13  1995/05/25  18:52:01  brianp
  31. # changed hpux XLIBS order of -lXext -lX11 per Jan Springer
  32. #
  33. # Revision 1.12  1995/05/23  13:51:11  brianp
  34. # Release 1.2
  35. #
  36. # Revision 1.11  1995/05/16  14:12:02  brianp
  37. # added amix target
  38. # changed a few compiler flags
  39. #
  40. # Revision 1.10  1995/04/20  17:36:09  brianp
  41. # made SCO a separate target
  42. #
  43. # Revision 1.9  1995/04/18  15:49:32  brianp
  44. # fixed XLIBS variable for sun4-gcc configuration
  45. #
  46. # Revision 1.8  1995/04/17  14:47:04  brianp
  47. # introduced GL_LIB and GLU_LIB variables
  48. #
  49. # Revision 1.7  1995/03/31  17:07:24  brianp
  50. # 1.1.3 beta release
  51. #
  52. # Revision 1.6  1995/03/14  14:34:09  brianp
  53. # 1.1.2 beta release
  54. #
  55. # Revision 1.5  1995/03/09  14:55:31  brianp
  56. # added -mieee-fp to Linux CFLAGS per Thorsten Ohl
  57. #
  58. # Revision 1.4  1995/03/09  14:52:20  brianp
  59. # added osf1 target per Joseph Canedo
  60. #
  61. # Revision 1.3  1995/03/08  18:53:19  brianp
  62. # added linux-debug target per Thorsten Ohl
  63. #
  64. # Revision 1.2  1995/03/07  14:34:26  brianp
  65. # new hpux CFLAGS per Jan Springer's suggestion
  66. #
  67. # Revision 1.1  1995/03/03  16:27:51  brianp
  68. # Initial revision
  69. #
  70.  
  71.  
  72.  
  73. # This is included by all the sub-dir makefiles to define the following
  74. # variables:
  75. #
  76. # GL_LIB      the name of the Mesa "GL" library file (usually libMesaGL.a)
  77. # GLU_LIB     the name of the Mesa "GLU" library file (usually libMesaGLU.a)
  78. # CC          the C compiler (usually cc or gcc)
  79. # CFLAGS      flags to C compiler
  80. # ARFLAGS     flags to ar
  81. # RANLIB      "ranlib" = use ranlib, "true" = don't use ranlib
  82. # XLIBS       libraries needed to link X apps
  83. #
  84. # To add a new configuration for your system just follow the examples below
  85. # and update the top-level Makefile.
  86. #
  87. # If your system supports the X Shared Memory extension add -DSHM to the
  88. # CFLAGS line and add -lXext to the XLIBS line.
  89.  
  90.  
  91.  
  92. aix:
  93.     $(MAKE) targets \
  94.     "GL_LIB = libMesaGL.a" \
  95.     "GLU_LIB = libMesaGLU.a" \
  96.     "CC = cc" \
  97.     "CFLAGS = -O -I$(INCDIR)" \
  98.     "ARFLAGS = ruv" \
  99.     "RANLIB = true" \
  100.     "XLIBS = -lX11"
  101.  
  102. # Make-config additions for the Amiga 3000 UX
  103. # Carlyn Voss Iuzzolino   5/8/95: 
  104. # Modified gcc part as follows:
  105. # Needed to take out -pedantic because that makes gcc complain about 
  106. # ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
  107. # Took out -O2 (unrecognized option for gcc on the Amiga).
  108. # Needs /usr/lib/libsocket.a file. 
  109. amix:
  110.     $(MAKE) targets \
  111.     "GL_LIB = libMesaGL.a" \
  112.     "GLU_LIB = libMesaGLU.a" \
  113.     "TK_LIB = libMesatk.a" \
  114.     "AUX_LIB = libMesaaux.a" \
  115.     "CC = cc" \
  116.     "CFLAGS = -I$(INCDIR)" \
  117.     "ARFLAGS = ruv" \
  118.     "RANLIB = true" \
  119.     "XLIBS = -lX11 -lsocket -lnsl "
  120.  
  121. freebsd:
  122.     $(MAKE) targets \
  123.     "GL_LIB = libMesaGL.a" \
  124.     "GLU_LIB = libMesaGLU.a" \
  125.     "TK_LIB = libMesatk.a" \
  126.     "AUX_LIB = libMesaaux.a" \
  127.     "CC = gcc" \
  128.     "CFLAGS = -pedantic -O2 -I$(INCDIR)" \
  129.     "ARFLAGS = ruv" \
  130.     "RANLIB = ranlib" \
  131.     "XLIBS = -lX11"
  132.  
  133. gcc:
  134.     $(MAKE) targets \
  135.     "GL_LIB = libMesaGL.a" \
  136.     "GLU_LIB = libMesaGLU.a" \
  137.     "TK_LIB = libMesatk.a" \
  138.     "AUX_LIB = libMesaaux.a" \
  139.     "CC = gcc" \
  140.     "CFLAGS = -pedantic -O2 -I$(INCDIR)" \
  141.     "ARFLAGS = ruv" \
  142.     "RANLIB = ranlib" \
  143.     "XLIBS = -lX11"
  144.  
  145. hpux:
  146.     $(MAKE) targets \
  147.     "GL_LIB = libMesaGL.a" \
  148.     "GLU_LIB = libMesaGLU.a" \
  149.     "TK_LIB = libMesatk.a" \
  150.     "AUX_LIB = libMesaaux.a" \
  151.     "CC = cc" \
  152.     "CFLAGS = +O2 +Oall +Onolimit -Aa -D_HPUX_SOURCE -I$(INCDIR) -I/usr/include/X11R5 -DSHM" \
  153.     "ARFLAGS = ruv" \
  154.     "RANLIB = true" \
  155.     "XLIBS = -L/usr/lib/X11R5 -lXext -lX11"
  156.  
  157. # For IRIX 4: don't use -fullwarn because it causes too much garbage
  158. irix4:
  159.     pmake targets \
  160.     "GL_LIB = libMesaGL.a" \
  161.     "GLU_LIB = libMesaGLU.a" \
  162.     "TK_LIB = libMesatk.a" \
  163.     "AUX_LIB = libMesaaux.a" \
  164.     "CC = cc" \
  165.     "CFLAGS = -O2 -ansi -prototypes -float -I$(INCDIR) -DSHM" \
  166.     "ARFLAGS = rcv" \
  167.     "RANLIB = true" \
  168.     "XLIBS = -lXext -lX11"
  169.  
  170. # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  171. irix5:
  172.     pmake targets \
  173.     "GL_LIB = libMesaGL.a" \
  174.     "GLU_LIB = libMesaGLU.a" \
  175.     "TK_LIB = libMesatk.a" \
  176.     "AUX_LIB = libMesaaux.a" \
  177.     "CC = cc" \
  178.     "CFLAGS = -O2 -ansi -fullwarn -float -I$(INCDIR) -DSHM" \
  179.     "ARFLAGS = rcv" \
  180.     "RANLIB = true" \
  181.     "XLIBS = -lX11 -lXext"
  182.  
  183. # IRIX 5 using Dynamic Shared Objects (DSO)
  184. irix5-dso:
  185.     pmake targets \
  186.     "GL_LIB = libMesaGL.so" \
  187.     "GLU_LIB = libMesaGLU.so" \
  188.     "TK_LIB = libMesatk.so" \
  189.     "AUX_LIB = libMesaaux.so" \
  190.     "CC = cc" \
  191.     "CFLAGS = -O2 -ansi -fullwarn -float -I$(INCDIR) -DSHM" \
  192.     "ARFLAGS = rcv" \
  193.     "RANLIB = true" \
  194.     "XLIBS = -lX11 -lXext"
  195.  
  196. # For IRIX 6: -woff:
  197. #   1068 - integer conversion resulted in a change of sign
  198. #   1069 - integer conversion resulted in truncation
  199. #   1174 - variable was declared but never referenced
  200. #   1185 - enumerated type mixed with another type
  201. #   1209 - controlling expression is constant
  202. #   1474 - declaring a void parameter list with a typedef is nonstandard
  203. #   1552 - variable was set but never used
  204. irix6:
  205.     pmake targets \
  206.     "GL_LIB = libMesaGL.a" \
  207.     "GLU_LIB = libMesaGLU.a" \
  208.     "TK_LIB = libMesatk.a" \
  209.     "AUX_LIB = libMesaaux.a" \
  210.     "CC = cc" \
  211.     "CFLAGS = -64 -O3 -ansi -fullwarn -woff 1068,1069,1174,1185,1209,1474,1552 -I$(INCDIR) -DSHM" \
  212.     "ARFLAGS = rcv" \
  213.     "RANLIB = true" \
  214.     "XLIBS = -lX11 -lXext"
  215.  
  216. linux:
  217.     $(MAKE) targets \
  218.     "GL_LIB = libMesaGL.a" \
  219.     "GLU_LIB = libMesaGLU.a" \
  220.     "TK_LIB = libMesatk.a" \
  221.     "AUX_LIB = libMesaaux.a" \
  222.     "CC = gcc" \
  223.     "CFLAGS = -pedantic -O2 -mieee-fp -I$(INCDIR)" \
  224.     "ARFLAGS = ruv" \
  225.     "RANLIB = ranlib" \
  226.     "XLIBS = -L/usr/X11/lib -lX11"
  227.  
  228. linux-elf:
  229.     $(MAKE) targets \
  230.     "GL_LIB = libMesaGL.so.1" \
  231.     "GLU_LIB = libMesaGLU.so.1" \
  232.     "TK_LIB = libMesatk.so.1" \
  233.     "AUX_LIB = libMesaaux.so.1" \
  234.     "CC = gcc" \
  235.     "CFLAGS = -pedantic -O2 -mieee-fp -fPIC -I$(INCDIR)" \
  236.     "ARFLAGS = ruv" \
  237.     "RANLIB = ranlib" \
  238.     "XLIBS = -L/usr/X11/lib -lX11"
  239.  
  240. netbsd:
  241.     $(MAKE) targets \
  242.     "GL_LIB = libMesaGL.a" \
  243.     "GLU_LIB = libMesaGLU.a" \
  244.     "TK_LIB = libMesatk.a" \
  245.     "AUX_LIB = libMesaaux.a" \
  246.     "CC = gcc" \
  247.     "CFLAGS = -pipe -O2 -I$(INCDIR)"  \
  248.     "ARFLAGS = rcv" \
  249.     "RANLIB = ranlib" \
  250.     "XLIBS = -L/usr/X11R5/lib -lX11"
  251.  
  252. osf1:
  253.     $(MAKE) targets \
  254.     "GL_LIB = libMesaGL.a" \
  255.     "GLU_LIB = libMesaGLU.a" \
  256.     "TK_LIB = libMesatk.a" \
  257.     "AUX_LIB = libMesaaux.a" \
  258.     "CC = cc" \
  259.     "CFLAGS = -O2 -I$(INCDIR) -std1 -DSHM" \
  260.     "ARFLAGS = ruv" \
  261.     "RANLIB = true" \
  262.     "XLIBS = -lX11 -lXext"
  263.  
  264. sco:
  265.     $(MAKE) targets \
  266.     "GL_LIB = libMesaGL.a" \
  267.     "GLU_LIB = libMesaGLU.a" \
  268.     "TK_LIB = libMesatk.a" \
  269.     "AUX_LIB = libMesaaux.a" \
  270.     "CC = cc" \
  271.     "CFLAGS = -O -I$(INCDIR)" \
  272.     "ARFLAGS = ruv" \
  273.     "RANLIB = true" \
  274.     "XLIBS = -lX11 -lsocket"
  275.  
  276. sco-gcc:
  277.     $(MAKE) targets \
  278.     "GL_LIB = libMesaGL.a" \
  279.     "GLU_LIB = libMesaGLU.a" \
  280.     "TK_LIB = libMesatk.a" \
  281.     "AUX_LIB = libMesaaux.a" \
  282.     "CC = gcc" \
  283.     "CFLAGS = -pedantic -O2 -mieee-fp -I$(INCDIR)" \
  284.     "ARFLAGS = ruv" \
  285.     "RANLIB = true" \
  286.     "XLIBS = -lX11 -lsocket"
  287.  
  288. sunos4:
  289.     $(MAKE) targets \
  290.     "GL_LIB = libMesaGL.a" \
  291.     "GLU_LIB = libMesaGLU.a" \
  292.     "TK_LIB = libMesatk.a" \
  293.     "AUX_LIB = libMesaaux.a" \
  294.     "CC = acc" \
  295.     "CFLAGS = -O -I$(INCDIR) -DSHM" \
  296.     "ARFLAGS = ruv" \
  297.     "RANLIB = ranlib" \
  298.     "XLIBS = -lX11 -lXext"
  299.  
  300. sunos4-gcc:
  301.     $(MAKE) targets \
  302.     "GL_LIB = libMesaGL.a" \
  303.     "GLU_LIB = libMesaGLU.a" \
  304.     "TK_LIB = libMesatk.a" \
  305.     "AUX_LIB = libMesaaux.a" \
  306.     "CC = gcc" \
  307.     "CFLAGS = -O3 -I$(INCDIR) -DSHM" \
  308.     "ARFLAGS = ruv" \
  309.     "RANLIB = ranlib" \
  310.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  311.  
  312. sunos5:
  313.     $(MAKE) targets \
  314.     "GL_LIB = libMesaGL.a" \
  315.     "GLU_LIB = libMesaGLU.a" \
  316.     "TK_LIB = libMesatk.a" \
  317.     "AUX_LIB = libMesaaux.a" \
  318.     "CC = cc" \
  319.     "CFLAGS = -Xa -O -I/usr/openwin/include -I$(INCDIR) -DSHM" \
  320.     "ARFLAGS = ruv" \
  321.     "RANLIB = true" \
  322.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  323.  
  324. sunos5-gcc:
  325.     $(MAKE) targets \
  326.     "GL_LIB = libMesaGL.a" \
  327.     "GLU_LIB = libMesaGLU.a" \
  328.     "TK_LIB = libMesatk.a" \
  329.     "AUX_LIB = libMesaaux.a" \
  330.     "CC = gcc" \
  331.     "CFLAGS = -O3 -I/usr/openwin/include -I$(INCDIR) -DSHM" \
  332.     "ARFLAGS = ruv" \
  333.     "RANLIB = true" \
  334.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  335.  
  336. ultrix:
  337.     $(MAKE) targets \
  338.     "GL_LIB = libMesaGL.a" \
  339.     "GLU_LIB = libMesaGLU.a" \
  340.     "TK_LIB = libMesatk.a" \
  341.     "AUX_LIB = libMesaaux.a" \
  342.     "CC = cc" \
  343.     "CFLAGS = -O -I$(INCDIR) -Dconst=/**/" \
  344.     "ARFLAGS = rusv" \
  345.     "RANLIB = true" \
  346.     "XLIBS = -lX11"
  347.  
  348. unixware:
  349.     $(MAKE) targets \
  350.     "GL_LIB = libMesaGL.a" \
  351.     "GLU_LIB = libMesaGLU.a" \
  352.     "TK_LIB = libMesatk.a" \
  353.     "AUX_LIB = libMesaaux.a" \
  354.     "CC = cc" \
  355.     "CFLAGS = -O -I$(INCDIR) -I/usr/X/include -DSHM" \
  356.     "ARFLAGS = ruv" \
  357.     "RANLIB = true" \
  358.     "XLIBS = -lX11 -lXext -lsocket -lnsl"
  359.  
  360. vistra:
  361.     $(MAKE) targets \
  362.     "GL_LIB = libMesaGL.a" \
  363.     "GLU_LIB = libMesaGLU.a" \
  364.     "TK_LIB = libMesatk.a" \
  365.     "AUX_LIB = libMesaaux.a" \
  366.     "CC = gcc" \
  367.     "CFLAGS = -pedantic -O2 -I$(INCDIR)" \
  368.     "ARFLAGS = ruv" \
  369.     "RANLIB = true" \
  370.     "XLIBS = -lX11 -lsocket -lnsl -lgen"
  371.  
  372.  
  373. # for debugging on IRIX 5.x systems
  374. debug:
  375.     pmake targets \
  376.     "GL_LIB = libMesaGL.a" \
  377.     "GLU_LIB = libMesaGLU.a" \
  378.     "TK_LIB = libMesatk.a" \
  379.     "AUX_LIB = libMesaaux.a" \
  380.     "CC = cc" \
  381.     "CFLAGS = -g -ansi -prototypes -fullwarn -float -I$(INCDIR) -DSHM" \
  382.     "ARFLAGS = rcv" \
  383.     "RANLIB = true" \
  384.     "XLIBS = -lX11 -lXext -lfpe -lXext"
  385.  
  386. DEBUG:
  387.     pmake targets \
  388.     "GL_LIB = libMesaGL.a" \
  389.     "GLU_LIB = libMesaGLU.a" \
  390.     "TK_LIB = libMesatk.a" \
  391.     "AUX_LIB = libMesaaux.a" \
  392.     "CC = cc" \
  393.     "CFLAGS = -g -ansi -prototypes -fullwarn -float -I$(INCDIR) -DSHM -DDEBUG" \
  394.     "ARFLAGS = rcv" \
  395.     "RANLIB = true" \
  396.     "XLIBS = -lX11 -lXext -lfpe"
  397.  
  398. # for debugging on Linux systems
  399. linux-debug:
  400.     $(MAKE) targets \
  401.     "GL_LIB = libMesaGL.a" \
  402.     "GLU_LIB = libMesaGLU.a" \
  403.     "TK_LIB = libMesatk.a" \
  404.     "AUX_LIB = libMesaaux.a" \
  405.     "CC = gcc" \
  406.     "CFLAGS = -pedantic -g -I$(INCDIR)" \
  407.     "ARFLAGS = ruv" \
  408.     "RANLIB = ranlib" \
  409.     "XLIBS = -L/usr/X11/lib -lX11"
  410.  
  411.